package com.cychat.mall.params;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.List;

/**
 * Auther: 刘俊  <br/>
 * Date: 2025-11-9:下午 5:23  <br/>
 * Description: 单个商品订单参数
 */
@Data
public class OneProductOrderParams {
    @NotNull(message = "地址ID不能为空")
    @Min(value = 1, message = "地址ID必须大于等于1")
    private Integer addressId; // 地址ID
    @NotNull(message = "商品ID不能为空")
    @Min(value = 1, message = "商品ID必须大于等于1")
    private Integer productId;// 商品ID
}
